package day8.pack1;

public final class Penguin extends Pet {
    public Penguin() {}
    public Penguin(String nickname, int health, int love, String gender) {
        setNickname(nickname);
        setGender(gender);
        setHealth(health);
        setLove(love);
    }
    public Penguin(String nickname, int health, String gender) {
        setNickname(nickname);
        setGender(gender);
        setHealth(health);
    }

    public static final String Q_BOY = "Q仔";
    public static final String Q_GIRL = "Q妹";
    private String gender;

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void print() {
        System.out.println("我的名字叫" + this.getNickname()
                + ",我的健康值是" + this.getHealth() +
                ",我和主人的亲密程度是" + this.getLove() +
                ",我的性别是" + this.getGender());
    }

    @Override
    public void eat() {
        System.out.println("企鹅吃虾米");
    }


    public void swimming() {
        System.out.println("企鹅玩游戏，游泳");
    }
}
